package com.starlink.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.starlink.common.PageInfoTwo;
import com.starlink.model.domain.MallCategoryDO;
import com.starlink.model.request.MallCategoryRequest;
import com.starlink.model.vo.MallCategoryVO;
import com.sun.org.apache.xpath.internal.operations.Bool;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author zhanghong
 */
public interface MallCategoryService extends IService<MallCategoryDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    MallCategoryVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfoTwo<MallCategoryVO> pageQuery(MallCategoryRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<MallCategoryVO> listQuery(MallCategoryRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(MallCategoryRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(MallCategoryRequest request);
    /**
     * 根据主键删除
     * @param ids
     * @return
     */
    Boolean deleteDOById(Long ids);

    /**
     * 查询书籍分类字典数据
     * @return
     */
    List<MallCategoryVO> booksCategory();
}